from django.urls import path

from users.views import index, login, logout, UserRegisterView, ChangeUserInfoView, registerDone, ChangePassword, UserDeleteView, deleteConfirm, about


app_name = 'account'


urlpatterns = [
    path('', index, name='index'),
    path('about/', about, name='about'),
    path('login/', login, name='login'),
    path('<str:name>/logout/', logout, name='logout'),
    path('<str:name>/profile/change/', ChangeUserInfoView.as_view(), name='profile_change'),
    path('<int:pk>/delete/', UserDeleteView.as_view(), name='delete-user'),
    path('delete-user_confirm/', deleteConfirm, name='delete-user_confirm'),
    path('registration/', UserRegisterView.as_view(), name='register'),
    path('registration/done/', registerDone, name='register-done'),
    path('password-change/', ChangePassword, name='password-change'),
]